.class public final Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3$1;
.super Lcom/pierfrancescosoffritti/youtubeplayer/player/AbstractYouTubePlayerListener;
.source "AppPromoDialog.kt"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3;->onInitSuccess(Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = null
.end annotation


# instance fields
.field final synthetic $initializedYouTubePlayer:Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;

.field final synthetic this$0:Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3;


# direct methods
.method constructor <init>(Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3;Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;",
            ")V"
        }
    .end annotation

    .line 77
    iput-object p1, p0, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3$1;->this$0:Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3;

    iput-object p2, p0, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3$1;->$initializedYouTubePlayer:Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;

    invoke-direct {p0}, Lcom/pierfrancescosoffritti/youtubeplayer/player/AbstractYouTubePlayerListener;-><init>()V

    return-void
.end method


# virtual methods
.method public onReady()V
    .locals 5

    .line 79
    iget-object v0, p0, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3$1;->this$0:Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3;

    iget-object v1, v0, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3;->$customUi:Lkotlin/jvm/internal/Ref$ObjectRef;

    new-instance v2, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;

    iget-object v0, v0, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3;->$customPlayerUI:Landroid/view/View;

    const-string v3, "customPlayerUI"

    invoke-static {v0, v3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    iget-object v3, p0, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3$1;->$initializedYouTubePlayer:Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;

    const-string v4, "initializedYouTubePlayer"

    invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {v2, v0, v3}, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;-><init>(Landroid/view/View;Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;)V

    iput-object v2, v1, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;

    .line 80
    iget-object v0, p0, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3$1;->$initializedYouTubePlayer:Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;

    iget-object v1, p0, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3$1;->this$0:Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3;

    iget-object v1, v1, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3;->this$0:Llt/farmis/libraries/apps_promo/AppPromoDialog;

    invoke-virtual {v1}, Llt/farmis/libraries/apps_promo/AppPromoDialog;->getVideoId()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;->loadVideo(Ljava/lang/String;F)V

    .line 81
    iget-object v0, p0, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3$1;->this$0:Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3;

    iget-object v0, v0, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3;->$customUi:Lkotlin/jvm/internal/Ref$ObjectRef;

    iget-object v0, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object;

    check-cast v0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;

    if-eqz v0, :cond_0

    new-instance v1, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3$1$onReady$1;

    invoke-direct {v1, p0}, Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3$1$onReady$1;-><init>(Llt/farmis/libraries/apps_promo/AppPromoDialog$onCreateView$3$1;)V

    invoke-virtual {v0, v1}, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->setOnStart(Lkotlin/jvm/functions/Function0;)V

    :cond_0
    return-void
.end method
